package deleted

// ContextOption represents option of Context using the functional options pattern.
//type ContextOption func(*Context) error
//
//// RTPReplayProtection sets RTP replay protection window size.
//func RTPReplayProtection(windowSize uint) ContextOption { // nolint:golint
//	return func(c *Context) error {
//		c.newSRTPReplayDetector = func() replaydetector.ReplayDetector {
//			return replaydetector.WithWrap(windowSize, maxSequenceNumber)
//		}
//		return nil
//	}
//}
//
//// RTCPReplayProtection sets RTCP replay protection window size.
//func RTCPReplayProtection(windowSize uint) ContextOption {
//	return func(c *Context) error {
//		c.newSRTCPReplayDetector = func() replaydetector.ReplayDetector {
//			return replaydetector.WithWrap(windowSize, maxRTCPIndex)
//		}
//		return nil
//	}
//}
//
//// RTPNoReplayProtection disables RTP replay protection.
//func RTPNoReplayProtection() ContextOption { // nolint:golint
//	return func(c *Context) error {
//		c.newSRTPReplayDetector = func() replaydetector.ReplayDetector {
//			return &nopReplayDetector{}
//		}
//		return nil
//	}
//}
//
//// RTCPNoReplayProtection disables RTCP replay protection.
//func RTCPNoReplayProtection() ContextOption {
//	return func(c *Context) error {
//		c.newSRTCPReplayDetector = func() replaydetector.ReplayDetector {
//			return &nopReplayDetector{}
//		}
//		return nil
//	}
//}

type nopReplayDetector struct{}

func (s *nopReplayDetector) Check(uint64) (func(), bool) {
	return func() {}, true
}
